package aip.project.controller.bio.Admin.DeleteOfferta;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

import aip.project.service.OfferteService;

public class RimuoviController extends Controller {

    OfferteService service = new OfferteService();
    @Override
    public Navigation run() throws Exception {
        service.removeOfferta(Datastore.stringToKey(request.getParameter("key")));
        return redirect(basePath);
    }
}
